<div ng-controller="TrackerTaskCtrl">
    <form class="form-inline">
        <div class="form-group">
            <input type="text" class="form-control sheet-input" ng-model="query.taskName" name="taskName" placeholder="请输入安全扫描的任务名称">
        </div>
        <div class="form-group">
            <select class="form-control sheet-select" ng-model="query.checkType" name="checkType">
                <option value="">请选择检查项</option>
                <option value="0">默认</option>
                <option value="1">所有</option>
            </select>
        </div>
        <div class="form-group">
            <select class="form-control sheet-select" ng-model="query.delay" name="delay">
                <option value="">请选择延时</option>
                <option value="0">0</option>
                <option value="10">10</option>
                <option value="30">30</option>
                <option value="60">60</option>
            </select>
        </div>
        <div class="form-group">
            <div class="search-div marginL" ng-click="paginationSearch(0,pagination.pageSize)">查询</div>
            <a href="javascript:void(0)" class="text-primary" target="_blank"  ui-sref="topHead.leftColumn.editTask({type:'create'})" style="margin-right: 20px;"><i class="fu fu-plus" style="color: #65B113"><span style="color: #11B983;font-size: 12px">创建任务</span></i></a>
        </div>
    </form>

    <div class="table-body">
        <table class="sn-table">
            <tr>
                <th width="5%"></th>
                <th>任务名称</th>
                <th>检查项</th>
                <th>延时</th>
            </tr>
            <tr ng-repeat="taskItem in pagination.data">
                <td>
                    <input type="radio" name="inlineRadioOptions" ng-click="selectTask($event,taskItem)"
                           data="{{taskItem}}" id="{{taskItem.tasId}}" value="{{taskItem.tasId}}">
                </td>
                <td class="text_overflow_task">
                    {{taskItem.taskName}}
                </td>
                <td>
                    <span ng-if="taskItem.checkType=='0'">默认</span>
                    <span ng-if="taskItem.checkType=='1'">所有</span>
                </td>
                <td>
                    {{taskItem.delay}}
                </td>
            </tr>
            <tr ng-if="!pagination.data||pagination.data.length<1">
                <td colspan="7">暂无数据</td>
            </tr>
        </table>
    </div>
 
             <cd-pager style="float: right" page="pagination.page" page-size="pagination.pageSize"
         total="pagination.totalCount" page-action="paginationSearch(page, pageSize, total)"></cd-pager>
    <div class="form-group">
        <button class="btn btn-default cancelbutton" ng-click="curr(0)">上一步</button>
        <button class="btn btn-primary" ng-click="save()" ng-disabled="!selectTaskList||selectTaskList.length<1">确定</button>
    </div>
</div>
<style type="text/css">
    input.form-control {
        height: 28px;
    }

    input {
        height: 26px;
        padding-left: 10px;
        padding-right: 0px;
        border: 1px solid #ddd;
        color: #333;
        width: 170px;
    }

    input.form-control {
        height: 28px;
    }
    input.sheet-input, select.sheet-select{
        width:150px !important;
        height:26px;
        padding-top:0;
        padding-bottom:0;
        color:#c9c9c9;
    }
    input.sheet-input::-webkit-input-placeholder{
        color:#c9c9c9;
    }

</style>
